#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void biao(int x)
{
	int a,b = 0;
	for (a = 1; a <= x; a++)
	{
		for (b = 1; b <= a; b++)
		{
			printf("%dx%d=%d ", b, a, b * a);
		}
		printf("\n");
	}
}
int main() 
{
	int i = 0;
	scanf("%d", &i);
	biao(i);
}